﻿
# Cmake的命令不区分打下写，例如message，set等命令；但Cmake的变量区分大小写
# 为统一风格，本项目的Cmake命令全部采用小写，变量全部采用大写加下划线组合。
# DA WorkBench 源码目录Cmake文件

cmake_minimum_required(VERSION 3.5)

########################################################
# 加载库
########################################################
add_subdirectory(DAShared)
add_subdirectory(DAUtils)

if(WIN32)
    # DAAxOfficeWrapper基于Axcontainer是windows独有的技术
    add_subdirectory(DAAxOfficeWrapper)
    add_dependencies(DAAxOfficeWrapper DAUtils)
endif()

add_subdirectory(DAMessageHandler)
add_dependencies(DAMessageHandler DAUtils)

if(DA_ENABLE_PYTHON)
    add_subdirectory(DAPyBindQt)

    add_subdirectory(DAPyScripts)
    add_dependencies(DAPyScripts DAPyBindQt)

    add_subdirectory(DAPyCommonWidgets)
    add_dependencies(DAPyCommonWidgets DAPyBindQt)

    add_subdirectory(DAData)
    add_dependencies(DAData DAUtils DAPyBindQt DAPyScripts)
else()
    add_subdirectory(DAData)
endif()




add_subdirectory(DACommonWidgets)
add_dependencies(DACommonWidgets DAUtils)

add_subdirectory(DAGraphicsView)
add_dependencies(DAGraphicsView DAUtils)

add_subdirectory(DAWorkFlow)
add_dependencies(DAWorkFlow DAGraphicsView)

add_subdirectory(DAFigure)
add_subdirectory(DAGui)

add_subdirectory(DAInterface)
add_dependencies(DAInterface DAGui)

add_subdirectory(DAPluginSupport)
add_dependencies(DAPluginSupport DAInterface)

add_subdirectory(APP)

